<?php
use yii\helpers\Html;
?>
<h3>
    <span class="fa fa-comments-o"></span>
    评论(<?= count($article->comments) ?>)
</h3>

<?php foreach ($article->comments as $key => $comment) : ?>
<div class='comment'>
    <div class="media">
        <div class="media-left">
            <img class="media-object" data-src="holder.js/64x64?text=<?= Html::encode($comment->commenter) ?>" alt='avatar' />
        </div>
        <div class="media-body">
            <h4 class="media-heading">单条评论</h4>
            <?= Html::encode($comment->content) ?>
        </div>
    </div>
</div>
<?php endforeach ?>
